package com.xjtu.mapper;

import com.github.pagehelper.Page;
import com.xjtu.entity.Elderly;
import com.xjtu.vo.ElderlyVo;

import java.util.List;

/**
* @author 2070929887
* @description 针对表【elderly(老人的基本信息表)】的数据库操作Mapper
* @createDate 2023-11-12 14:47:30
* @Entity com.xjtu.mapper.Elderly
*/
public interface ElderlyMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Elderly record);

    int insertSelective(Elderly record);

    Elderly selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Elderly record);

    int updateByPrimaryKey(Elderly record);

    Page<Elderly> pageQuery(String name);
    List<ElderlyVo> getRegrationElderly();

    List<ElderlyVo> getRegrationElderlyByName(String elderlyName);

    List<Elderly> selectAll();
}
